function rnum(low, hi,    x, y, z) {

# Generates a random number within a range
# Michael S. Sanders
# license: GPL3
# Example, a random number between 10 to 20: num = rnum(10, 20)

  srand()
  x = rand()
  y = (hi - low) + 1
  z = int((x * y) + low)
  return z

}

# eof
